portableSql
Replace Portable SQL Function
Syntax
Replace as C (Text as C, FromString as C, ToString as C)
Arguments
- TextCharacter
A field or value.
- FromStringCharacter
The text to replace.
- ToStringCharacter
The replacement text.
Returns
- resultCharacter
Returns a string where all instances of the search string replaced with the replacement text.
Description
Returns the string Text with all occurrences of the string FromString replaced by the string ToString.
Discussion
The Replace function replaces all instances of a string in a field or value expression with the specified replacement text.
Replace() function executed on the Northwind Access database
SELECT FIRST 1 Replace(CompanyName,'t','w') AS Expr1 FROM Customers =Alfreds Fuwwerkiswe